<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>资源管理检索系统</title>
<link href="css/layout.css" rel="stylesheet" type="text/css" />
<link href="css/style.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
body {
	margin:0;
	font-family:Verdana, Arial, Helvetica, sans-serif;
}
body,td,th {
	font-size: 12px;
}
.main{
	margin:auto;
}
.headbar {
	color:#80a9ba;
}
.fL {
	float:left;
}
.fR {
	float:right;
}

#topblank {
	height:30px;
}
ul {
	list-style-type:none;
	margin:0pt;
	padding:0pt;
}
label {
padding-right:1em;
}
.sw_box {
margin:-2px 0pt 0pt;
padding:0pt;
}
.sw_box table {
margin:5px 0pt 6px;
}
.sw_box td {
padding:0pt;
vertical-align:middle;
white-space:nowrap;
}
.sw_b1 {
background-color:#FFFFFF;
border:1px solid #B0B8BE;
}
.sw_b2 {
border:1px solid #E3E3E4;
}
.sw_b3 {
	border:1px solid #F0F0F0;
	margin-right:0.5em;
}
input.sw_qbox {
	border:1px solid white;
	color:#333333;
	font-family:arial;
	font-size:112%;
	padding:0.35em 0.4em 0.3em;
	vertical-align:middle;
	width:24.5em;
}
input.sw_qbtn {
	background-color:#549C00;
	background-image:url(images/asset3.gif);
	background-position:0pt -64px;
	border:medium none;
	cursor:pointer;
	height:24px;
	line-height:500%;
	margin:0.14em 0.2em 0.14em 0.14em;
	vertical-align:middle;
	width:24px;
}
#srchfilt input {
	margin-right:2px;
}
.sb_form_align {
	margin-left:-2px;
}
.sc_scp {
	margin-left:-2px;
}
.sc_scp a {
	color:#000000;
	text-decoration:none;
	white-space:nowrap;
}
.sc_scp a:hover, .sc_more ul a {
	text-decoration:underline;
}
.sc_scp span.sc_arw {
	cursor:pointer;
	font-size:70%;
	margin-left:0.1em;
	text-decoration:none;
}
.sc_scp span.sc_beta {
	color:#555555;
	font-size:70%;
	line-height:170%;
	text-decoration:none;
	vertical-align:text-top;
}
.sc_action span, .sc_action a {
font-weight:bold;
}
.sc_scp, .sc_scp li, .sc_scp ul {
	display:inline;
}
.sc_scp li {
	padding:0pt 8px;
	cursor:pointer;
}
.sc_active, .drk li.sc_active {
	border-left:1px solid #A8B1B7;
	border-right:1px solid #A8B1B7;
	color:#4E9C00;
	font-weight:bold;
	margin:0pt 4px;
	padding:0pt 10px;
}
#content {
	background-color:#FFFFFF;
	height:350px;
	overflow:hidden;
	position:relative;
	width:100%;
	margin:auto;
	margin-top:100px;
}
#sch_content{
	margin:auto;
	width:65%;
}
.sw_sform {
	width:400px;
	margin:auto;
}

.logoDiv {
	background-image:url(images/asset3.gif);
	background-repeat:no-repeat;
	height:57px;
	width:140px;
	margin:auto;
}
#bgDiv {
	height:512px;
	left:0pt;
	position:absolute;
	top:0pt;
	width:100%;
}
#overlay {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 90;
	width: 100%;
	height: 500px;
	background-color: #000;
	filter:alpha(opacity=60);
	-moz-opacity: 0.6;
	opacity: 0.6;
}
#lbCenter, #lbBottom {
	position: absolute;
	left: 50%;
	overflow: hidden;
	background-color: #fff;
	z-index: 100;
}
#lbCloseLink {
	display: block;
	float: right;
	width: 66px;
	height: 22px;
	background: transparent url(images/lightbox_close.gif) no-repeat center;
	margin: 5px 0;
}
#lbCaption
{
	margin-left:71px;
	margin-top:10px;
	font-weight:bold;
}
-->
</style>
</head>
<body>
<div class="main">
  <div id="content">
    <div id="sch_content">
      <div class="logoDiv fL"></div>
      <div class="sw_sform fL">
        <div>
          <ul class="sc_scp" id=“sch_scopes”>
            <li class="sc_active" id="type_all" onclick="selectType('all');"><span>所有</span></li>
            <!--#foreach($restype as $key=>$val){#-->
            <li id="type_$key" onclick="selectType('$key');"><span>$val[typename]</span></li>
            <!--#}#-->
          </ul>
        </div>
        <form class=sw_box id=sb_form action="$very[url]/search.php" method="post" onsubmit="return checkKeyword();" >
          <table cellspacing=0 cellpadding=0>
            <tbody>
              <tr>
                <td><div class=sw_b3>
                    <div class=sw_b2>
                      <div class=sw_b1>
                        <input class="sw_qbox" id="keyword" title="搜索" name="keyword" />
                        <input class=sw_qbtn id=sb_form_go title=搜索 tabindex=0 type=submit name=go value="" />
                      </div>
                    </div>
                  </div></td>
              </tr>
            </tbody>
          </table>
          <input type="hidden" value="all" name="type" id="type" />
          <input name="step" type="hidden" id="step" value="2" />
          <input name="mid" type="hidden" id="mid" value="1" />
        </form>
      </div>
      <div style="clear:both"></div>
      <div style="line-height:180%; text-align:center; padding-top:30px;"> <a href="#">使用帮助</a> | <a href="#">高级搜索</a> | <a href="javascript:;" onclick="showTree();">目录查看</a></div>
	  
    </div>
  </div>
  <div style="text-align:center">Copyright &copy; 2008 北京市XX学校版权所有</div>
</div>
<div id="lbCenter" style="visibility: hidden;width: 300px; height: 300px; margin-left: -150px; top: 150px; overflow-y:auto;">
<!--# include Template('tree'); #-->
</div>
<div id="lbBottom" style="visibility: hidden; opacity: 1; height: 32px; top: 450px; width: 300px; margin-left: -150px;">
<a id="lbCloseLink" href="javascript:;" onclick="hideTree();"></a>
<div id="lbCaption">请选择您要查看的目录</div>
</div>
<div id="overlay" style="height:620px; visibility: hidden; opacity: 0.8;"></div>
<script language="javascript">
function showTree()
{
	var treelay = document.getElementById('overlay');
	//var h = document.body.offsetHeight + document.body.scrollHeight;
	//treelay.style.height = h + "px";
	treelay.style.visibility="visible";
	document.getElementById('lbBottom').style.visibility="visible";
	document.getElementById('lbCenter').style.visibility="visible";
}

function hideTree()
{
	document.getElementById('lbBottom').style.visibility="hidden";
	document.getElementById('overlay').style.visibility="hidden";
	document.getElementById('lbCenter').style.visibility="hidden";
}
var current = 'all';
function selectType(id)
{
	if(id == current) return;
	document.getElementById('type_'+id).className = 'sc_active';
	document.getElementById('type_'+current).className = '';
	document.getElementById('type').value = id;
	current = id;
}

function checkKeyword()
{
	if(document.getElementById('keyword').value.length < 2)
	{
		alert('请输入至少两个字的关键字进行搜索');
		document.getElementById('keyword').focus();
		return false;
	} 
	return true;
}
</script>
</body>
</html>
